home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-05-13 | 1.7 KB | 76 lines |
- # @(#)Makefile 5.2 (Berkeley) 6/26/90
-
- PROGS= fortune strfile unstr
- SRCS= fortune.c strfile.c unstr.c
- MAN6= fortune.0
- BINOWN= root
- DATFILES=fortunes.dat startrek.dat zippy.dat fortunes-o.dat
- DATFILESR=fortunes startrek zippy fortunes-o
- .SUFFIXES: .0 .6 .8 .dat
- VPATH=.:datfiles
- CFLAGS= -bsd -O2 `allArchs`
- LDFLAGS= -object
- #LIBS= -lsys_s
- STRIP= -s
- BINGRP= wheel
- BINMODE= 755
- MANOWN= root
- MANGRP= staff
- MANMODE= 664
-
- .6.0: ; nroff -h -man $*.6 >$@
-
- all: ${PROGS} ${MAN6} ${DATFILES}
-
- fortune: fortune.c
- $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $*.c $(LIBS)
-
- strfile: strfile.c
- $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $*.c $(LIBS)
-
- unstr: unstr.c
- $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $*.c $(LIBS)
-
- fortunes-o.dat: fortunes-o strfile
- ./strfile -rsx datfiles/$* $@
-
- fortunes.dat: fortunes strfile
- ./strfile -rs datfiles/$* $@
-
- startrek.dat: startrek strfile
- ./strfile -rs datfiles/$* $@
-
- zippy.dat: zippy strfile
- ./strfile -rs datfiles/$* $@
-
- clean:
- rm -f ${PROGS} core *.dat
-
- cleandir: clean
- rm -f ${MAN6} tags .depend
-
- depend: ${SRCS}
- mkdep -p ${CFLAGS} ${SRCS}
-
- install:
- -mkdirs -o root -g wheel -m 755 /usr/local/lib/fortune
- install ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} fortune \
- ${DESTDIR}/usr/local/bin
- install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} fortune.6 \
- ${DESTDIR}/usr/local/man/man6/fortune.6
- (cd datfiles; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
- ${DATFILESR} ${DESTDIR}/usr/local/lib/fortune)
- install -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \
- ${DESTDIR}/usr/local/lib/fortune
-
- lint: ${SRCS}
- lint ${CFLAGS} ${LINTFLAGS} fortune.c
- lint ${CFLAGS} ${LINTFLAGS} strfile.c
- lint ${CFLAGS} ${LINTFLAGS} unstr.c
-
- tags: ${SRCS}
- ctags fortune.c
- ctags strfile.c
- ctags unstr.c
- sort -o tags tags
-